package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpModifyPhoneExample.E_EMP_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.E_IS_UPDATE_USER_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.E_NEW_PHONE;
import static org.jsola.hr.example.EmpModifyPhoneExample.E_NEW_USER_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.E_OLD_PHONE;
import static org.jsola.hr.example.EmpModifyPhoneExample.E_OLD_USER_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.E_REMARK;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_NEW_PHONE_MAX;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_NEW_PHONE_NOT_NULL;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_NEW_USER_ID_MAX;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_NEW_USER_ID_NOT_NULL;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_OLD_PHONE_MAX;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_OLD_PHONE_NOT_NULL;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_OLD_USER_ID_MAX;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_OLD_USER_ID_NOT_NULL;
import static org.jsola.hr.example.EmpModifyPhoneExample.M_REMARK_MAX;
import static org.jsola.hr.example.EmpModifyPhoneExample.N_EMP_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.N_IS_UPDATE_USER_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.N_NEW_PHONE;
import static org.jsola.hr.example.EmpModifyPhoneExample.N_NEW_USER_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.N_OLD_PHONE;
import static org.jsola.hr.example.EmpModifyPhoneExample.N_OLD_USER_ID;
import static org.jsola.hr.example.EmpModifyPhoneExample.N_REMARK;

/**
 * 员工修改手机号
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工修改手机号】的参数")
@Data
public class EmpModifyPhoneAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_OLD_USER_ID, example = E_OLD_USER_ID, required = true)
    @NotNull(message = M_OLD_USER_ID_NOT_NULL)
    @Length(max = 32, message = M_OLD_USER_ID_MAX)
    private String oldUserId;

    @ApiModelProperty(notes = N_NEW_USER_ID, example = E_NEW_USER_ID, required = true)
    @NotNull(message = M_NEW_USER_ID_NOT_NULL)
    @Length(max = 32, message = M_NEW_USER_ID_MAX)
    private String newUserId;

    @ApiModelProperty(notes = N_OLD_PHONE, example = E_OLD_PHONE, required = true)
    @NotNull(message = M_OLD_PHONE_NOT_NULL)
    @Length(max = 32, message = M_OLD_PHONE_MAX)
    private String oldPhone;

    @ApiModelProperty(notes = N_NEW_PHONE, example = E_NEW_PHONE, required = true)
    @NotNull(message = M_NEW_PHONE_NOT_NULL)
    @Length(max = 32, message = M_NEW_PHONE_MAX)
    private String newPhone;

    @ApiModelProperty(notes = N_IS_UPDATE_USER_ID, example = E_IS_UPDATE_USER_ID)
    private Boolean isUpdateUserId;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 100, message = M_REMARK_MAX)
    private String remark;


}

